home *** CD-ROM | disk | FTP | other *** search
/ Chip 2001 October / Chip_2001-10_cd1.bin / sharewar / Slunec / app / pspads.exe / {app} / Context / PHP.DEF < prev    next >
Encoding:
Text File  |  2001-08-12  |  17.8 KB  |  464 lines

  1. ; Tento soubor obsahuje makra programu PSPad pro PHP
  2. ;
  3. ; ╪ßdky zaΦφnajφcφ st°ednφkem a prßzdnΘ °ßdky jsou ignorovßny
  4. ;
  5. ; Formßt p°φkaz∙ :
  6. ;   [jmΘno_p°φkazu | popis p°φkazu (libovoln² text)]*klßvesovß_zkratka
  7. ;   °ßdek p°φkazu, kter² bude vlo₧en 
  8. ;   °ßdek p°φkazu, kter² bude vlo₧en ...
  9. ; hlaviΦka p°φkazu je uzav°ena do [], znak | slou₧φ jako odd∞lovaΦ
  10. ; jmΘna p°φkazu a komentß°e. 
  11. ; * urΦuje nepovinnou klßvesovou zkratku
  12. ; pokud °ßdek p°φkazu obsahuje znak |, kurzor se po vlo╛enφ do
  13. ; textu zastavφ na tomto mφst∞
  14. ; pokud °ßdek p°φkazu obsahuje znak º, bude zde vlo₧en oznaΦen² text
  15. ;
  16. ; autor: ing. Jan Fiala  pspad@wo.cz
  17. ; poslednφ revize: 12.8.2001
  18. ;
  19. [Abs | absolute value]
  20. abs(|mixed number);
  21. [Acos | arc cosine]
  22. acos(|float arg);
  23. [arsort | Sort an array in reverse order and maintain index association]
  24. arsort(|array array);
  25. [Asin | arc sine]
  26. asin(|float arg);
  27. [asort | Sort an array and maintain index association]
  28. asort(|array array);
  29. [Atan | arc tangent]
  30. atan(|float arg);
  31. [basename | return file name part of path]
  32. basename(|string path);
  33. [bcadd | Add two arbitrary precision numbers.]
  34. bcadd(|string left operand, string right operand, int scale);
  35. [bccomp | Compare two arbitrary precision numbers.]
  36. bccomp(|string left operand, string right operand, int scale);
  37. [bcdiv | Divide two arbitrary precision numbers.]
  38. bcdiv(|string left operand, string right operand, int scale);
  39. [bcmod | Get modulus of an arbitrary precision number.]
  40. bcmod(|string left operand, string modulus, int scale);
  41. [bcmul | Multiply two arbitrary precision number.]
  42. bcmul(|string left operand, string right operand, int scale);
  43. [bcpow | Raise an arbitrary precision number to another.]
  44. bcpow(|string x, string y, int scale);
  45. [bcscale | Set default scale parameter for all bc math functions.]
  46. bcscale(|int scale);
  47. [bcsqrt | Get the square root of an arbitray precision number.]
  48. bcsqrt(|string operand, int scale);
  49. [bcsub | Subtract one arbitrary precision number from another.]
  50. bcsub(|string left operand, string right operand, int scale);
  51. [BinDec | binary to decimal]
  52. bindec(|string binary_string);
  53. [Ceil | round fractions up]
  54. ceil(|float number);
  55. [chdir | change directory]
  56. chdir(|string directory);
  57. [checkdate | validate a date/time]
  58. checkdate(|int month, int day, int year);
  59. [chgrp | change file group]
  60. chgrp(|string filename, mixed group);
  61. [chmod | change file mode]
  62. chmod(|string filename, int mode);
  63. [chown | change file owner]
  64. chown(|string filename, mixed user);
  65. [clearstatcache | clear file stat cache]
  66. clearstatcache(|void);
  67. [closedir | close directory handle]
  68. closedir(|int dir_handle);
  69. [copy | copy file]
  70. copy(|string source, string dest);
  71. [Cos | cosine]
  72. cos(|float arg);
  73. [count | count elements in a variable]
  74. count(|mixed var);
  75. [current | return the current element in an array]
  76. current(|array array);
  77. [date | format a local time/date]
  78. date(|string format, int timestamp);
  79. [DecBin | decimal to binary]
  80. decbin(|int number);
  81. [DecHex | decimal to hexadecimal]
  82. dechex(|int number);
  83. [DecOct | decimal to octal]
  84. decoct(|int number);
  85. [dir | directory class]
  86. dir(|string directory);
  87. [dirname | return file name part of path]
  88. dirname(|string path);
  89. [dl | load a PHP extension at runtime]
  90. dl(|string library);
  91. [each | return next key/value pair from an array]
  92. each(|array array);
  93. [end | set internal pointer of array to last element]
  94. |array);
  95. [escapeshellcmd | escape shell metacharacters]
  96. escapeshellcmd(|string command);
  97. [exec | Execute an external program]
  98. exec(|string command, string array, int return_var);
  99. [Exp | to the power of...]
  100. exp(|float arg);
  101. [fclose | close an open file pointer]
  102. fclose(|int fp);
  103. [feof | test for end-of-file on a file pointer]
  104. feof(|int fp);
  105. [fgetc | get character from file pointer]
  106. fgetc(|int fp);
  107. [fgets | get line from file pointer]
  108. fgets(|int fp, int length);
  109. [fgetss | get line from file pointer and strip HTML tags]
  110. fgetss(|int fp, int length);
  111. [file | read entire file into an array]
  112. file(|string filename);
  113. [fileatime | get last access time of file]
  114. fileatime(|string filename);
  115. [filectime | get inode modification time of file]
  116. filectime(|string filename);
  117. [filegroup | get file group]
  118. filegroup(|string filename);
  119. [fileinode | get file inode]
  120. fileinode(|string filename);
  121. [filemtime | get file modification time]
  122. filemtime(|string filename);
  123. [fileowner | get file owner]
  124. fileowner(|string filename);
  125. [fileperms | get file permissions]
  126. fileperms(|string filename);
  127. [filesize | get file size]
  128. filesize(|string filename);
  129. [filetype | get file type]
  130. filetype(|string filename);
  131. [fileumask | get file umask]
  132. fileumask(|int umask);
  133. [file_exists | Check whether a file exists.]
  134. file_exists(|string filename);
  135. [Floor | round fractions down]
  136. floor(|float number);
  137. [fopen | open file or URL]
  138. fopen(|string filename, string mode);
  139. [fpassthru | output all remaining data on a file pointer]
  140. fpassthru(|int fp);
  141. [fputs | write to a file pointer]
  142. fputs(|int fp, string str, int length);
  143. [fread | Binary-safe file read]
  144. fread(|int fp, int length);
  145. [FrenchToJD | Converts a date from the French Republican Calendar to a Julian Day Count]
  146. frenchtojd(|int month, int day, int year);
  147. [fseek | seek on a file pointer]
  148. fseek(|int fp, int offset);
  149. [ftell | tell file pointer read/write position]
  150. ftell(|int fp);
  151. [fwrite | Binary-safe file write]
  152. fwrite(|int fp, string string, int length);
  153. [getallheaders | Fetch all HTTP request headers]
  154. getallheaders(|void);
  155. [getdate | get date/time information]
  156. getdate(|int timestamp);
  157. [getenv | Get the value of an environment variable.]
  158. getenv(|string varname);
  159. [GetImageSize | get the size of a GIF, JPG or PNG image]
  160. getimagesize(|string filename);
  161. [getlastmod | Get time of last page modification.]
  162. getlastmod(|void);
  163. [getmyinode | Get the inode of the current script.]
  164. getmyinode(|void);
  165. [getmypid | Get PHP's process ID.]
  166. getmypid(|void);
  167. [getmyuid | Get PHP script owner's UID.]
  168. getmyuid(|void);
  169. [getrandmax | show largest possible random value]
  170. getrandmax(|void );
  171. [get_cfg_var | Get the value of a PHP configuration option.]
  172. get_cfg_var(|string varname);
  173. [get_current_user | Get the name of the owner of the current PHP script.]
  174. get_current_user(|void);
  175. [gmdate | format a GMT/CUT date/time]
  176. gmdate(|string format, int timestamp);
  177. [gmmktime | get UNIX timestamp for a GMT date]
  178. gmmktime(|int hour, int minute, int second, int month, int day, int year);
  179. [GregorianToJD | Converts a Gregorian date to Julian Day Count]
  180. gregoriantojd(|int month, int day, int year);
  181. [header | Send a raw HTTP header]
  182. header(|string string);
  183. [HexDec | hexadecimal to decimal]
  184. hexdec(|string hex_string);
  185. [ImageArc | draw a partial ellipse]
  186. imagearc(|int im, int cx, int cy, int w, int h, int s, int e, int col);
  187. [ImageChar | draw a character horizontally]
  188. imagechar(|int im, int font, int x, int y, string c, int col);
  189. [ImageCharUp | draw a character vertically]
  190. imagecharup(|int im, int font, int x, int y, string c, int col);
  191. [ImageColorAllocate | allocate a color for an image]
  192. imagecolorallocate(|int im, int red, int green, int blue);
  193. [ImageColorAt | get the index of the color of a pixel]
  194. imagecolorat(|int im, int x, int y);
  195. [ImageColorClosest | get the index of the closest color to the specified color]
  196. imagecolorclosest(|int im, int red, int green, int blue);
  197. [ImageColorExact | get the index of the specified color]
  198. imagecolorexact(|int im, int red, int green, int blue);
  199. [ImageColorSet | set the color for the specified palette index]
  200. imagecolorset(|int im, int index, int red, int green, int blue);
  201. [ImageColorsForIndex | get the colors for an index]
  202. imagecolorsforindex(|int im, int index);
  203. [ImageColorsTotal | find out the number of colors in an image's palette]
  204. imagecolorstotal(|int im);
  205. [ImageColorTransparent | define a color as transparent]
  206. imagecolortransparent(|int im, int col);
  207. [ImageCopyResized | copy and resize part of an image]
  208. imagecopyresized(|int dst_im, int src_im, int dstX, int dstY, int srcX, int srcY, int dstW, int dstH, int srcW, int srcH);
  209. [ImageCreate | create a new image]
  210. imagecreate(|int x_size, int y_size);
  211. [ImageCreateFromGif | create a new image from file or URL]
  212. imagecreatefromgif(|string filename);
  213. [ImageDashedLine | draw a dashed line]
  214. imagedashedline(|int im, int x1, int y1, int x2, int y2, int col);
  215. [ImageDestroy | destroy an image]
  216. imagedestroy(|int im);
  217. [ImageFill | flood fill]
  218. imagefill(|int im, int x, int y, int col);
  219. [ImageFilledPolygon | draw a filled polygon]
  220. imagefilledpolygon(|int im, array points, int num_points, int col);
  221. [ImageFilledRectangle | draw a filled rectangle]
  222. imagefilledrectangle(|int im, int x1, int y1, int x2, int y2, int col);
  223. [ImageFillToBorder | flood fill to specific color]
  224. imagefilltoborder(|int im, int x, int y, int border, int col);
  225. [ImageFontHeight | get font height]
  226. imagefontheight(|int font);
  227. [ImageFontWidth | get font width]
  228. imagefontwidth(|int font);
  229. [ImageGif | output image to browser or file]
  230. imagegif(|int im, string filename);
  231. [ImageInterlace | enable or disable interlace]
  232. imageinterlace(|int im, int interlace);
  233. [ImageLine | draw a line]
  234. imageline(|int im, int x1, int y1, int x2, int y2, int col);
  235. [ImageLoadFont | load a new font]
  236. imageloadfont(|string file);
  237. [ImagePolygon | draw a polygon]
  238. imagepolygon(|int im, int points, int num_points, int col);
  239. [ImageRectangle | draw a rectangle]
  240. imagerectangle(|int im, int x1, int y1, int x2, int y2, int col);
  241. [ImageSetPixel | set a single pixel]
  242. imagesetpixel(|int im, int x, int y, int col);
  243. [ImageString | draw a string horizontally]
  244. imagestring(|int im, int font, int x, int y, string s, int col);
  245. [ImageStringUp | draw a string vertically]
  246. imagestringup(|int im, int font, int x, int y, string s, int col);
  247. [ImageSX | get image width]
  248. imagesx(|int im);
  249. [ImageSY | get image height]
  250. imagesy(|int im);
  251. [ImageTTFText | write text to the image using a TrueType fonts]
  252. imagettftext(|int im, int size, int angle, int x, int y, int col, string fontfile, string text);
  253. [is_dir | tells whether the filename is a directory]
  254. is_dir(|string filename);
  255. [is_executable | tells whether the filename is executable]
  256. is_executable(|string filename);
  257. [is_file | tells whether the filename is a regular file]
  258. is_file(|string filename);
  259. [is_link | tells whether the filename is a symbolic link]
  260. is_link(|string filename);
  261. [is_readable | tells whether the filename is readable]
  262. is_readable(|string filename);
  263. [is_writeable | tells whether the filename is writeable]
  264. is_writeable(|string filename);
  265. [JDDayOfWeek | Returns the day of the week]
  266. jddayofweek(|int julianday, int mode);
  267. [JDMonthname | Returns a month name]
  268. jdmonthname(|int julianday, int mode);
  269. [JDToFrench | Converts a Julian Day Count to the French Republican Calendar]
  270. jdtofrench(|int month, int day, int year);
  271. [JDToGregorian | Converts Julian Day Count to Gregorian date]
  272. jdtogregorian(|int julianday);
  273. [JDToJewish | Converts a Julian Day Count to the Jewish Calendar]
  274. jdtojewish(|int julianday);
  275. [JDToJulian | Converts a Julian Calendar date to Julian Day Count]
  276. jdtojulian(|int julianday);
  277. [JewishToJD | Converts a date in the Jewish Calendar to Julian Day Count]
  278. jewishtojd(|int month, int day, int year);
  279. [JulianToJD | Converts a Julian Calendar date to Julian Day Count]
  280. juliantojd(|int month, int day, int year);
  281. [key | fetch a key from an associative array]
  282. key(|array array);
  283. [ksort | Sort an array by key.]
  284. ksort(|array array);
  285. [leak | Leak memory]
  286. leak(|int bytes);
  287. [link | Create a hard link]
  288. link(|string target, string link);
  289. [linkinfo | Get information about a link]
  290. linkinfo(|string path);
  291. [list | assign variables as if they were an array]
  292. list(|...);
  293. [Log | natural logarithm]
  294. log(|float arg);
  295. [Log10 | base-10 logarithm]
  296. log10(|float arg);
  297. [mail | send mail]
  298. mail(|string to, string subject, string message, string additional_headers);
  299. [max | find highest value]
  300. max(|mixed arg1, mixed arg2, mixed argn);
  301. [microtime | return current UNIX timestamp with microseconds]
  302. microtime(|void);
  303. [min | find lowest value]
  304. min(|mixed arg1, mixed arg2, mixed argn);
  305. [mkdir | make directory]
  306. mkdir(|string pathname, int mode);
  307. [mktime | get UNIX timestamp for a date]
  308. mktime(|int hour, int minute, int second, int month, int day, int year);
  309. [mysql_affected_rows | get number of affected rows in last query]
  310. mysql_affected_rows(|int link_identifier );
  311. [mysql_close | close MySQL connection]
  312. mysql_close(|int link_identifier );
  313. [mysql_connect | open MySQL server connection]
  314. mysql_connect(|string hostname , string username , string password );
  315. [mysql_create_db | create MySQL database]
  316. mysql_create_db(|string database name, int link_identifier );
  317. [mysql_data_seek | move internal row pointer]
  318. mysql_data_seek(|int result_identifier, int row_number);
  319. [mysql_dbname | get current MySQL database name]
  320. mysql_dbname(|string result, int i);
  321. [mysql_db_query | send MySQL query]
  322. mysql_db_query(|string database, string query, int link_identifier);
  323. [mysql_drop_db | drop (delete) MySQL database]
  324. mysql_drop_db(|string database_name, int link_identifier );
  325. [mysql_errno | returns error number of last mysql call]
  326. mysql_errno(|);
  327. [mysql_error | returns error message of last mysql call]
  328. mysql_error(|);
  329. [mysql_fetch_array | fetch row as array]
  330. mysql_fetch_array(|int result);
  331. [mysql_fetch_field | get field information]
  332. mysql_fetch_field(|int result, int field_offset );
  333. [mysql_fetch_lengths | get max data size of output columns]
  334. mysql_fetch_lengths(|int result);
  335. [mysql_fetch_object | fetch row as object]
  336. mysql_fetch_object(|int result);
  337. [mysql_fetch_row | get row as enumerated array]
  338. mysql_fetch_row(|int result);
  339. [mysql_field_flags | get field flags]
  340. mysql_field_flags(|string result, int field_offset);
  341. [mysql_field_len | get field length]
  342. mysql_field_len(|string result, int field_offset);
  343. [mysql_field_name | get field name]
  344. mysql_field_name(|string result, int i);
  345. [mysql_field_seek | set field offset]
  346. mysql_field_seek(|int result, int field_offset);
  347. [mysql_field_table | get table name for field]
  348. mysql_field_table(|int result, int field_offset);
  349. [mysql_field_type | get field type]
  350. mysql_field_type(|string result, int field_offset);
  351. [mysql_free_result | free result memory]
  352. mysql_free_result(|int result);
  353. [mysql_insert_id | get generated id from last INSERT]
  354. mysql_insert_id(|void);
  355. [mysql_list_dbs | list MySQL databases on server]
  356. mysql_list_dbs(|void);
  357. [mysql_list_fields | list result fields]
  358. mysql_list_fields(|string database, string tablename);
  359. [mysql_list_tables | list tables in a MySQL database]
  360. mysql_list_tables(|string database);
  361. [mysql_num_fields | get number of fields in result]
  362. mysql_num_fields(|int result);
  363. [mysql_num_rows | get number of rows in result]
  364. mysql_num_rows(|string result);
  365. [mysql_pconnect | open persistent MySQL connection]
  366. mysql_pconnect(|string hostname , string username , string password );
  367. [mysql_query | send MySQL query]
  368. mysql_query(|string query, int link_identifier );
  369. [mysql_result | get result data]
  370. mysql_result(|int result, int row, mixed field);
  371. [mysql_select_db | select MySQL database]
  372. mysql_select_db(|string database_name, int link_identifier );
  373. [mysql_tablename | get table name of field]
  374. mysql_tablename(|int result, int i);
  375. [next | advance the internal array pointer]
  376. next(|array array);
  377. [OctDec | octal to decimal]
  378. octdec(|string octal_string);
  379. [opendir | open directory handle]
  380. opendir(|string path);
  381. [passthru | Execute an external program and display raw output]
  382. passthru(|string command, int return_var);
  383. [pclose | close process file pointer]
  384. pclose(|int fp);
  385. [phpinfo | Output lots of PHP information.]
  386. phpinfo(|void);
  387. [phpversion | Get the current PHP version.]
  388. phpversion(|void);
  389. [pi | get value of pi]
  390. pi(|void );
  391. [popen | open process file pointer]
  392. popen(|string command, string mode);
  393. [pos | return the current element in an array]
  394. pos(|array array);
  395. [pow | exponential expression]
  396. pow(|float base, float exp);
  397. [prev | rewind internal array pointer]
  398. prev(|array array);
  399. [putenv | Set the value of an environment variable.]
  400. putenv(|string setting);
  401. [rand | generate a random value]
  402. rand(|void );
  403. [readdir | read entry from directory handle]
  404. readdir(|int dir_handle);
  405. [readfile | output a file]
  406. readfile(|string filename);
  407. [readlink | Return the target of a symbolic link]
  408. readlink(|string path);
  409. [rename | rename a file]
  410. rename(|string oldname, string newname);
  411. [reset | set internal pointer of array to first element]
  412. |array);
  413. [rewind | rewind the position of a file pointer]
  414. rewind(|int fp);
  415. [rewinddir | rewind directory handle]
  416. rewinddir(|int dir_handle);
  417. [rmdir | remove directory]
  418. rmdir(|string dirname);
  419. [round | Rounds a float.]
  420. round(|double val);
  421. [rsort | Sort an array in reverse order]
  422. rsort(|array array);
  423. [setcookie | Send a cookie]
  424. setcookie(|string name, string value, int expire, string path, string domain, int secure);
  425. [set_time_limit | limit execution time]
  426. set_time_limit(|int seconds);
  427. [Sin | sine]
  428. sin(|float arg);
  429. [sizeof | get size of array]
  430. sizeof(|array array);
  431. [sleep | Delay execution]
  432. sleep(|int seconds);
  433. [sort | Sort an array]
  434. sort(|array array);
  435. [Sqrt | square root]
  436. sqrt(|float arg);
  437. [srand | seed the random number generator]
  438. srand(|int seed);
  439. [stat | give information about a file]
  440. stat(|string filename);
  441. [symlink | Create a symbolic link]
  442. symlink(|string target, string link);
  443. [system | Execute an external program and display output]
  444. system(|string command, int return_var);
  445. [Tan | tangent]
  446. tan(|float arg);
  447. [tempnam | create unique file name]
  448. tempnam(|string dir, string prefix);
  449. [time | return current UNIX timestamp]
  450. time(|void);
  451. [touch | set modification time of file]
  452. touch(|string filename, int time);
  453. [umask | changes the current umask]
  454. umask(|int mask);
  455. [uniqid | generate a unique id]
  456. uniqid(|string prefix);
  457. [unlink | Delete a file]
  458. unlink(|string filename);
  459. [usleep | Delay execution in microseconds]
  460. usleep(|int micro_seconds);
  461. [virtual | Perform an Apache sub-request]
  462. virtual(|string filename);
  463.